﻿using Hehq.Core.AppsImpl.Attributes;
using Hehq.User.Apps;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hehq.Tenant.WebApi.Users
{
    /// <summary>
    /// 所有tenant系统管理用户 ；即非用户自行注册的用户
    /// </summary>
    [PerModule(230,"用户管理")]
    public class SysUserAppService:AbsWebApp<IUserApp>, IWebApi
    {
        public object GetPage()
        {
            return null;
        }

        public bool CreateUser()
        {
            var app = this.GetApp<IUserApp>();
            var mk = app.CreateUserByAccount(null, Context.UserTypes.TenantUser);
            return mk.ID>0;
        }


    }
}
